CREATE OR REPLACE PACKAGE "kesplus_platform"."common_tree" AUTHID CURRENT_USER AS
	FUNCTION tree(objects jsonb, pid text DEFAULT '0') RETURNS jsonb;
	PROCEDURE save(schemaName TEXT, tableName TEXT, params jsonb);
	PROCEDURE update(schemaName TEXT, tableName TEXT, params jsonb);
	PROCEDURE update_all(schemaName TEXT, tableName TEXT, params jsonb);
END;

CREATE OR REPLACE PACKAGE BODY "kesplus_platform"."common_tree" AS WRAPPED
PDm3lby2rLkbPHSMA6ISYGBq2MfVpO/ZkI4AA9ov8cxKL916dEw0Hofxw022
Nj8FRI/1E14vnM8niBpO2pkqgiV0B85KHf84mrMaIh55l/cIR/mxdfWgOcwg
rYC95h3Z+VSzoi9FTNZhHK9P2hlBvwJTNPcwWcTutmzHciHtGjWl0Ii+iJDx
/dYO/WbRosQi3ht/7vpocT85Hm/gKLmfLr1tYm2VZX+FS5EsRIg4BLP1JQZd
jpRGkboAxhl24e70XJm8jMhYEGQu82OpyORF6kQbZUvNntzo3QejjL062Ewv
goVQlEcIKDgWY7enJheceN1ny4cNRpsbcbMgWEUCIQ9VicZKaH8fctOEEjPb
4B2miAqdivze/JMRGmLJsW7wCmx/E1ZRbOLRveDm9MSprVJcqA4gYUGA5vPX
e6a83/Z84sTmAJi1U/RG5rGYbEgoNndfNS0NbBLToKrSP/zNoMSNnJkzMr86
1hVXyT5HJm74mb5zbk4wAlWKqub91tKnv9vgey8T3I/rwO9ygC9wCgGcRpgO
+j0+geZ4qRtyDyH+yXio8rmqyhhoiikOYrdaUQ49PApU3Kg+rslWnzLmhqoS
051+mcilPmDr6PoH6AYdG8yo0Vty+w0ajLFnQvin1nN0GkYGrZXkRcVUdjUn
wt96G3w/BMcMnabBi8Jd5lJ83KuwcQ1wc65aFC2rWz7gavsGPteJSGxCezNG
sWFkwNgiiCJUwRW6T9x2W2BzHpJmiYyPlryA/9UxQ6ZU3oNyO9sAJ4FyDkmD
E72tOud1dS+zCPHrPVwwaXly63euOfnY19dljU0UDILAu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